home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / html / src / stacey.src < prev    next >
Text File  |  1998-03-23  |  3KB  |  62 lines

  1. @@@STARTPACK(stacey;Stacey Campbell's Mandelbrot Program)
  2.  
  3. <P>
  4. stacey is an X client for exploring the Mandelbrot Set.  It needs
  5. the Motif, X toolkit and X libraries to compile.  It has been
  6. successfully compiled with the SCO X11R4, X11R5 and X11R6 development 
  7. systems, and the SCO OSF/1 Hercules/1 dev sys.  
  8. See the Makefile for more details.  It runs
  9. on 16 color and 256 color X servers with PseudoColor colormap
  10. support.  Other colormap sizes will probably work.
  11. <P>
  12. Select the area to be investiagated using the standard rubberband
  13. technique of pressing down the mouse button, dragging out the
  14. desired area, then releasing the mouse button.  Stacey saves files
  15. in xwd format.  It does not read in files.  It can read coordinates
  16. from an .Xdefaults file, see the resources in mandel.c.  Here's the
  17. keyboard usage:
  18. <UL>
  19. <LI> 'r' - use red colormap
  20.    <LI>      'g' - use green colormap
  21.       <LI>   'b' - use blue colormap
  22. <LI>         'm' - use mono colormap
  23.    <LI>      'c' - use colorwheel colormap [default]
  24.       <LI>   'n' - use default colormap [cannot be rotated]
  25. <LI>         's' - use stripe colorwheel colormap
  26. <LI>         'a' - use non-green colormap
  27.    <LI>      'R' - toggle colormap rotation
  28.       <LI>   '1'..'9' - change colormap rotation speed
  29. <LI>         'x' - reverse colormap rotate direction
  30.    <LI>      'd' - dump current fractal to file "mandel.xwd"
  31. <LI>         space - double K value (depth of calculation) [default 128]
  32.    <LI>      'i' - toggle between generation algorithms
  33.       <LI>   'q' - quit program
  34. </UL>
  35. <P>
  36. The original program was culled from _The X Window System - Programming
  37. and Applications with Xt_, OSF/Motif Edition, by Douglas Young.  It has
  38. changed somewhat dramatically since then, but its roots are evident.
  39. The original Mandelbrot generation code was derived from the section
  40. "Do It Yourself" in _The Beauty of Fractals_, by H.-O. Peitgen and
  41. P.H. Richter (see image1.c).  My hack to optimize by filling areas of
  42. like color was inspired by John Gossman's article in alt.fractals
  43. concerning Contour Crawling (though it does not use his and Scott
  44. Sherman's code) (see image.c).  I expect their code does much better
  45. optimizations but I couldn't get it working.  The rainbow, red, green,
  46. and blue colormap code and keyboard interface code come straight from
  47. Hiram Clawson's color3 client, part of which was extracted from Foley
  48. and van Dam (see mandel.c).  The window dumping source is a slightly
  49. modified xwd.c from the MIT X11R4 source distribution, originally written
  50. by Tony Della Fera at DEC back in 1985.  The colormap rotation code comes
  51. from Dave Lemke's xrotmap client.  The icon bitmap was created using
  52. Jef Pozkanzer's pbmplus utlities.  Wing Eng helped by answering my Motif
  53. resource questions.  As far as I can tell, all of the above people have
  54. kindly allowed their source to be used in other peoples' code subject,
  55. in places, to the usual restrictions on acknowledgments and sale.
  56. </P>
  57.  
  58. @@@UW2DIST(http://www.sco.com/skunkware/uw7/x11/misc/)
  59. @@@SOURCE(ftp://ftp.sco.com/skunkware/src/x11/misc/)
  60. @@@ENDPACK
  61.  
  62.